int write_jpeg_iplImage(IplImage * frame, int fd, int quality);
int write_jpegfile_iplImage(IplImage * frame, FILE * fd, int quality);
int write_jpegmem_iplImage(IplImage * frame, unsigned char **outbuffer, long unsigned int *outlen, int quality);